package cn.edu.nwpu.warehousemanagement.pojo.request;

import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户更新自己的信息 请求类
 *
 * @author Loadstar
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateSelfInfoRequest {

    @Pattern(regexp = "^\\S{1,16}$")
    private String realname;

    @Pattern(regexp = "^1[3-9]\\d{9}$")
    private String phone;

    @Pattern(regexp = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$")
    private String email;


}
